<template>
    <el-date-picker v-model="suplier" type="daterange" range-separator="至" start-placeholder="开始日期"
        end-placeholder="结束日期"
        format="yyyy-MM-dd"
        value-format="yyyy-MM-dd"
        >
    </el-date-picker>
</template>

<script>
export default {
    name: 'CommonDateSelect',
    props: {
        value: [String, Array]
    },
    data() {
        return {

        };
    },
    computed: {
        suplier: {
            get() {
                return this.value
            },
            set(v) {
                this.$emit('input', v)
            }
        }
    },
    mounted() {

    },

    methods: {

    },
};
</script>

<style lang="less" scoped>
.el-date-editor{
    height: 32px;
    line-height: 32px;
}
</style>